HighContrast: Actually style tooltips...
authorDaniel Boles <dboles@src.gnome.org>
Thu, 5 Oct 2017 09:07:17 +0000 (10:07 +0100)
committerDaniel Boles <dboles@src.gnome.org>
Thu, 5 Oct 2017 17:44:04 +0000 (18:44 +0100)
We need to select on the widget itself too, not just other things with
the .tooltip class.

https://bugzilla.gnome.org/show_bug.cgi?id=769879

gtk/theme/HighContrast/_common.scss
gtk/theme/HighContrast/gtk-contained-inverse.css
gtk/theme/HighContrast/gtk-contained.css

index 4b8be0a2d61954ee9555bf454b73f6ba347bb791..6154416d890ede07c2b46565540f5f46d83c0815 100644 (file)
@@ -3085,6 +3085,7 @@ infobar {
  * Tooltips *
  ************/
 
+tooltip,
 .tooltip {
   color: white;
   padding: 4px; /* not working */
@@ -3094,6 +3095,7 @@ infobar {
 //  border: 2px solid $borders_color; gnome shell style?
 }
 
+tooltip *,
 .tooltip * { //Yeah this is ugly
   padding: 4px;
   background-color: transparent;
index 17ce53ec4fc3b5b50e9e537261a28a7497a5b962..10ba7ab3fe03bc191586ac7cb9c2b6fc7e28b9ea 100644 (file)
@@ -1399,9 +1399,9 @@ infobar { border-width: 0; border-style: none; }
 .info label:selected, .info label:selected:focus, .info label:selected:hover, .question label:selected, .question label:selected:focus, .question label:selected:hover, .warning label:selected, .warning label:selected:focus, .warning label:selected:hover, .error label:selected, .error label:selected:focus, .error label:selected:hover { background-color: white; }
 
 /************ Tooltips * */
-.tooltip { color: white; padding: 4px; /* not working */ border-radius: 5px; background-color: rgba(0, 0, 0, 0.8); text-shadow: 0 1px black; }
+tooltip, .tooltip { color: white; padding: 4px; /* not working */ border-radius: 5px; background-color: rgba(0, 0, 0, 0.8); text-shadow: 0 1px black; }
 
-.tooltip * { padding: 4px; background-color: transparent; color: inherit; }
+tooltip *, .tooltip * { padding: 4px; background-color: transparent; color: inherit; }
 
 /***************** Color Chooser * */
 colorswatch { box-shadow: inset 0 1px rgba(0, 0, 0, 0.1), 0 1px #000; }
index ad15af2f89b6785cd4f0a73be631b67b4a37220b..365d7b12fb042fc67c0098934a0fa0e76abd4f52 100644 (file)
@@ -1405,9 +1405,9 @@ infobar { border-width: 0; border-style: none; }
 .info label:selected, .info label:selected:focus, .info label:selected:hover, .question label:selected, .question label:selected:focus, .question label:selected:hover, .warning label:selected, .warning label:selected:focus, .warning label:selected:hover, .error label:selected, .error label:selected:focus, .error label:selected:hover { background-color: #333333; }
 
 /************ Tooltips * */
-.tooltip { color: white; padding: 4px; /* not working */ border-radius: 5px; background-color: rgba(0, 0, 0, 0.8); text-shadow: 0 1px black; }
+tooltip, .tooltip { color: white; padding: 4px; /* not working */ border-radius: 5px; background-color: rgba(0, 0, 0, 0.8); text-shadow: 0 1px black; }
 
-.tooltip * { padding: 4px; background-color: transparent; color: inherit; }
+tooltip *, .tooltip * { padding: 4px; background-color: transparent; color: inherit; }
 
 /***************** Color Chooser * */
 colorswatch { box-shadow: inset 0 1px rgba(0, 0, 0, 0.1), 0 1px #fff; }